package com.warom.sdg.model;

/**
 * 阈值设置实体类
 * 用于表示粮库监测阈值设置
 */
public class ThresholdSettingEntity {
    private long id;
    private String paramType;
    private double minValue;
    private double maxValue;
    private String unit;
    private String description;
    private long createTime;
    private long updateTime;

    public ThresholdSettingEntity() {
    }

    public ThresholdSettingEntity(String paramType, double minValue, double maxValue, String unit, String description) {
        this.paramType = paramType;
        this.minValue = minValue;
        this.maxValue = maxValue;
        this.unit = unit;
        this.description = description;
        this.createTime = System.currentTimeMillis();
        this.updateTime = this.createTime;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType;
    }

    public double getMinValue() {
        return minValue;
    }

    public void setMinValue(double minValue) {
        this.minValue = minValue;
    }

    public double getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(double maxValue) {
        this.maxValue = maxValue;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ThresholdSettingEntity{" +
                "id=" + id +
                ", paramType='" + paramType + '\'' +
                ", minValue=" + minValue +
                ", maxValue=" + maxValue +
                ", unit='" + unit + '\'' +
                ", description='" + description + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
} 